package com.company.project.upm.facade.modulexxx;

import com.company.project.upm.client.admin.facade.modulexxx.AdminFacede;
import com.company.project.upm.client.admin.model.modulexxx.dto.HelloDto;
import com.company.project.upm.client.admin.model.modulexxx.request.HelloRequest;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.Date;

/**
 * @Description 例子facade实现类
 * @Author zhongbo.yu
 * @Date 2021/12/28
 */
@DubboService
public class AdminFacadeImpl implements AdminFacede {

    @Override
    public HelloDto adminHello(HelloRequest request) {
        HelloDto helloDto = new HelloDto();
        helloDto.setName(request.getName());
        helloDto.setAge(request.getAge());
        helloDto.setTime(new Date());
        return helloDto;
    }
}